package com.sykj.bsc.rwl.service;


import java.util.HashMap;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.sykj.bsc.rwl.po.SysMenu;
import com.sykj.bsc.rwl.po.SysRole;
import com.sykj.bsc.rwl.po.SysUser;
import com.sykj.bsc.rwl.po.extend.SysMenuExtend;
import com.sykj.bsc.rwl.po.extend.SysUserExtend;

/**
 * 
 * @ClassName:  SysUserService   
 *@Description: 用户信息
 * @author 任文龙
 ** @date:   2018年8月13日 下午5:04:41
 */
public interface SysUserService {
	
	//通过用户账号查找
	public SysUser findByIdSysUser(String account) throws Exception;
	//通过用户id查询角色id
	public SysRole findByIdSysRole(Integer user_id)throws Exception;
	//通过角色id查询父节点权限
	public List<SysMenuExtend> findByIdSysMenu(Integer role_id)throws Exception;
	//通过子节点权限id查询按钮
	public List<SysMenu> findByIdButton(HashMap<String, Integer> map)throws Exception;
	//查询所有用户信息
	public List<SysUserExtend> selectSysUser(SysUserExtend sysUserExtend)throws Exception;
	//添加用户信息
	public void insertSysUser(SysUserExtend  sysUserExtend,int user_id)throws Exception;
	//修改用户
	public void updateSysUser(SysUserExtend  sysUserExtend,int user_id)throws Exception;
	//通过用户id查询用户
	public SysUserExtend findByIdSelectSysUser(Integer user_id)throws Exception;
	//通过用户id删除用户
	public void deleteSysUser(Integer user_id)throws Exception;
	//修改用户状态
	public void unfreezeSysUser(HashMap<String, Object> map)throws Exception;
}